{% extends 'layout.html.twig' %}
{% do script('app/js/entry/index.js') %}
{% block body %}



    <h2>编辑留言</h2>

    <form action="{{ path('entry_update',{id:entry.id}) }}" method="post" id="entry-form">
        <div class="form-group">
            <label>标题</label>
            <input type="text" name="title" value="{{ entry.title }}"  class="form-control" />
        </div>
        <div class="form-group">
            <label>内容</label>
            <input type="textarea" name="body" value="{{ entry.body }}" class="form-control" />
        </div>

        {{ form_csrf_token() }}
        <button type="submit" class="btn btn-primary" id="entry-base-submit">保存</button>
    </form>



{% endblock %}
